package com.wanxi.arr;

public class MaxArr {
    public static void main(String[] args) {
        int[] arr = {11, 224, 333, 44, 55};
        int max = arr[0];
        for (int i = 1; i < arr.length; i++) {
//            if (max < arr[i]) {
//                max = arr[i];
//            }
            max = max < arr[i] ? arr[i] : max;
        }
        System.out.println(max);
    }
}
